#ifndef _LW_H
#define _LW_H



class Pin {
    
      public:
            
             int PinName;
             
            Pin(int pinname )
             :PinName(pinname)
            {
              pinMode(PinName, OUTPUT);
            }
           

            void qu_fan ()
             {
              digitalWrite(PinName, !digitalRead(PinName));
             }
             void high()
             {
              digitalWrite(PinName,HIGH);
             }
             void low ()
             {
              digitalWrite(PinName,LOW);
             }
             void pwm()
             {
             

             }
           
};


class Pin1n{

 public:
            
             int PinName;
           
            Pin1n(int pinname )
             :PinName(pinname)
            {
              pinMode(PinName, INPUT);
            }

            float read ()
             {
                 return analogRead(PinName);//模拟输入
             }



};









#endif